from django.urls import path
from apps.users.views import UsernameCountView, MobilesCountView, RegisterView, LoginView, LogoutView

urlpatterns = [
    # 判断用户名是否重复
    path('usernames/<str:username>/count/', UsernameCountView.as_view()),
    # 判断手机号是否重复
    path('mobiles/<str:mobile>/count/', MobilesCountView.as_view()),
    # 用户注册
    path('register/', RegisterView.as_view()),
    # 用户登录
    path('login/', LoginView.as_view()),
    # 退出登录
    path('logout/', LogoutView.as_view())
]